package com.nb.linkedlist;

/**
 * @author lihaoyang
 * @date 2021/12/27
 */
public class MyNode {

    public Integer value;
    public MyNode next;

    public MyNode(Integer value) {
        this.value = value;
    }

    public MyNode(Integer value, MyNode next) {
        this.value = value;
        this.next = next;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public MyNode getNext() {
        return next;
    }

    public void setNext(MyNode next) {
        this.next = next;
    }
}
